home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000032_icon-group-sender _Mon May 18 12:44:11 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id MAA24536
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 18 May 1998 12:44:11 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA22953; Mon, 18 May 1998 12:44:06 -0700
Date: Mon, 18 May 1998 13:25:59 -0500
Message-Id: <199805181825.NAA29555@segfault.cs.utsa.edu>
From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
To: vladimir.grodzenski@capway.com
Cc: icon-group@optima.CS.Arizona.EDU
In-Reply-To: <199805161337.PAA01330@capway.com> (grodzens@capway.com)
Subject: Re: Annoying things
Reply-To: jeffery@cs.utsa.edu
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1673
> system("C:\\PROGRA~1\\ACCESS~1\\WORDPAD.EXE noname.icn")
> or
> system("C:\\Program Files\\Accessories\\Wordpad.exe noname.icn")
Surprisingly, the second solution (i.e. with long names) does not
work under my Windows95... The first one with DOS file names works
fine. Weird!
I suspect that the command-line argument processing breaks up the latter
string incorrectly at the first space character unless the command is quoted:
> system("\"C:\\Program Files\\Accessories\\Wordpad.exe\" noname.icn")
but I haven't checked to see if that is a proper fix yet.
> OTOH, I still cannot figure out how to list the directory since the
> DOS "DIR" command system("dir > foo") does nor redirect output to a
> file... Using Int86 function is not possible in WinIcon.
Under Windows Icon, open(dirname) should return a file value that produces
the filenames in the directory, one per line. With the present #ifdef's,
this may only be enabled for the wicont program, not with nticont, but it
should be easy to enable it for both.
Going back to your original system("dir > foo") example, I would note that
dir is an "internal" program built-in to command.com or cmd.exe and that
you may be able to get better behavior by explicitly naming the desired
invocation of your command interpreter, something like
system("C:\\WINDOWS\\COMMAND.COM /C /Q dir >foo")
but redirection in such a case might still be a problem; I'll put it on
my bug list and check it out. UNIX (Linux) works much better!
Clint Jeffery, jeffery@cs.utsa.edu
Division of Computer Science, The University of Texas at San Antonio
Research http://www.cs.utsa.edu/research/plss.html